package com.ltg.demo.controller;

import com.ltg.demo.feign.FeignTestService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.HashMap;
import java.util.Map;
import java.util.Objects;

/**
 * @Version 1.0
 * @Author LTG
 * @ClassName DemoController
 * @Date 2024/3/3 11:52
 */
@RestController
public class DemoController {
    @Autowired
    private FeignTestService feignTestService;

    @GetMapping("/a")
    public Object hello() {
        String s = feignTestService.selectPaymentList();
        Map<String, Object> map = new HashMap<>();
        map.put("hello", s);
        return map;
    }

}
